package service.impl;

import dao.FinanceDao;
import dao.impl.FinanceDaoImpl;
import entity.Finance;
import service.FinanceService;

import java.util.ArrayList;

public class FinanceServiceImpl implements FinanceService {
    private FinanceDao financeDao = new FinanceDaoImpl();

    @Override
    public String insert(String idNumber, String history) throws Exception {
        return financeDao.insert(idNumber, history);
    }

    @Override
    public ArrayList<Finance> findHistory(String idNumber) throws Exception {
        return financeDao.findHistory(idNumber);
    }
}
